filename = 'text_files\\alice.txt'
try:
    with open(filename) as f:
        message = f.read()
except FileNotFoundError:
    pass
else:
    print(message.lower().count('the'))
    print(message.lower().count('the '))